package com.xiaoxx.model.vo.coin;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class PriceChangeVo {

    @ApiModelProperty(value = "开始时间")
    @JSONField(format = "yyyy-MM-dd HH:mm")
    private LocalDateTime startTime;
    @ApiModelProperty(value = "结束时间")
    @JSONField(format = "yyyy-MM-dd HH:mm")
    private LocalDateTime endTime;
    @ApiModelProperty(value = "最低价格")
    private BigDecimal lowPrice;
    @ApiModelProperty(value = "最高价格")
    private BigDecimal highPrice;
    @ApiModelProperty(value = "价格振幅")
    private BigDecimal amplitude;
    @ApiModelProperty(value = "幅度")
    private BigDecimal range;
    @ApiModelProperty(value = "开")
    private BigDecimal open;
    @ApiModelProperty(value = "收")
    private BigDecimal close;

    public PriceChangeVo(LocalDateTime startTime, LocalDateTime endTime, BigDecimal lowPrice, BigDecimal highPrice, BigDecimal amplitude, BigDecimal range, BigDecimal open, BigDecimal close) {
        this.startTime = startTime;
        this.endTime = endTime;
        this.lowPrice = lowPrice;
        this.highPrice = highPrice;
        this.amplitude = amplitude;
        this.range = range;
        this.open = open;
        this.close = close;
    }
}
